<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="配置ProtectAgent与OceanProtect备份一体机的全量映射关系">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="DWS_00075">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>配置ProtectAgent与OceanProtect备份一体机的全量映射关系</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="DWS_00075"></a><a name="DWS_00075"></a>

<h1 class="topictitle1">配置ProtectAgent与OceanProtect备份一体机的全量映射关系</h1>
<div><div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>使用PuTTY，登录已部署ProtectAgent的GaussDB(DWS)集群的CN节点。</span></li><li><span>执行<strong>vi /opt/DataBackup/ProtectClient/ProtectClient-E/conf/agent_cfg.xml</strong>命令编辑配置文件。</span></li><li><span>修改&lt;Backup&gt;中的<span class="uicontrol">“agent_storage_relation”</span>配置项。其中<span class="uicontrol">“代理主机ip1”</span>~<span class="uicontrol">“代理主机ipn”</span>为所有注册到<span>OceanProtect</span>且用于GaussDB(DWS)保护业务的代理主机IP。<span class="uicontrol">“ESN1”</span>~<span class="uicontrol">“ESNn”</span>为代理主机执行保护业务时使用的<span>OceanProtect</span>的ESN。</span><p><pre class="screen">agent_storage_relation = "<em>代理主机ip</em><em>1</em>@<em>ESN</em><em>1</em>;<em>代理主机ip</em><em>2</em>@<em>ESN</em><em>2</em>;...<em>代理主机ipn</em>@<em>ESNn</em>"</pre>
<p>例如，代理主机<span class="uicontrol">“192.168.10.186”</span>和<span class="uicontrol">“192.168.10.13”</span>均已注册到ESN为<span class="uicontrol">“2102353GTJ10M1000001”</span>的<span>OceanProtect</span>。备份业务使用了备份存储单元组，存储单元组中包含ESN为<span class="uicontrol">“2102353GTJ10M1000003”</span>的备份存储单元。则在每个代理主机上，修改配置项示例如下：</p>
<pre class="screen">agent_storage_relation = "192.168.10.186@2102353GTJ10M1000001;192.168.10.13@2102353GTJ10M1000003"</pre>
<p>配置完成后，代理主机<span class="uicontrol">“192.168.10.186”</span>将数据备份到ESN为<span class="uicontrol">“2102353GTJ10M1000001”</span>的<span>OceanProtect</span>，代理主机<span class="uicontrol">“192.168.10.13”</span>将数据备份到ESN为<span class="uicontrol">“2102353GTJ10M1000003”</span>的<span>OceanProtect</span>。</p>
</p></li></ol>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>